package com.yjc.drygoods.search.servcie;

import com.yjc.common.to.PurchaseDetailTo;
import com.yjc.common.to.SkuEsModel;
import com.yjc.common.to.SkuInfoTo;

import java.io.IOException;
import java.util.List;

/**
 * @author yjc
 * @create 2022-09-07 15:57
 */
public interface ElasticSearchServcie {
    Boolean saveSkuEsModels(List<SkuEsModel> skuEsModels) throws IOException;

    void updateEsSaleCount(List<SkuInfoTo> skuInfos) throws IOException;

    void updateSkuPrice(List<SkuInfoTo> skuInfos) throws IOException;

    void saveOldYearPurchaseDetail(List<PurchaseDetailTo> purchaseDetailTos) throws IOException;

    void downAllSku(List<Long> skuIds) throws IOException;
}
